#include <stdio.h>

int main(void)
{	
    int moneys[6];
    int money,i = 0;
    int count = 0;
    printf("input:");
    scanf("%d",&money);	    
    while (money != 0)
    {	    
       moneys[i] = money % 10;
       money /= 10;
       count ++;
       i++; 
    }	 
       printf("count=%d\n",count);
    for (i = 0;i < 7;i++)
    {
       printf("moneys[%d\n]",moneys[i]);
    }	    
    return 0;
}	
